/*
 *  您可以更改此项目但请不要删除作者署名谢谢，否则根据中华人民共和国版权法进行处理.
 *  You may change this item but please do not remove the author's signature,
 *  otherwise it will be dealt with according to the Copyright Law of the People's Republic of China.
 *
 *  yangbuyi Copyright (c) https://yby6.com 2024.
 */

import vue from '@vitejs/plugin-vue';

import createAutoImport from './auto-import';
import createSetupExtend from './setup-extend';

export default function createVitePlugins(viteEnv, isBuild = false) {
  const vitePlugins = [
    vue({
      refTransform: true,
      reactivityTransform: true
    })
  ];
  vitePlugins.push(createAutoImport());
  vitePlugins.push(createSetupExtend());
  return vitePlugins;
}
